<%@page import="java.io.PrintWriter"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.util.Enumeration"%>
<%@page import="java.sql.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Member Log In</title>
<script>
	function trim(s){
		return s.replace( /^s*/, "" ).replace( /s*$/, "" );
	}
	function validate(){
		if ( trim(document.frmLogin.uName.value) == ""){
			alert ("User Name empty");
			document.frmLogin.uName.focus();
			return false;
		}
		else if ( trim(document.frmLogin.uPassword.value)== ""){
			alert ("Password empty");
			document.frmLogin.uPassword.focus();
			return false;
		}
	}
</script>
</head>
<body>
	<form name="frmLogin" onSubmit="return validate();" action="UserMemberServlet" method="post" >
		<table>
			<tr>
				<td>User Name</td>
				<td>
					<input type="text" name="uName" />
				</td>
			</tr>
			<tr>
				<td>Password</td>
				<td>
					<input type="password" name="uPassword" />
				</td>
			</tr>		
			<tr>
				<td colspan="2" >
					<input type="submit" name="btnSubmit" value="Submit" />
					&nbsp; &nbsp; &nbsp;
					<input type="reset" name="btnCancel" value="Cancel">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<a href="Member/Register.jsp" >Yet Not Register!</a>  
				</td>
			</tr>	
		</table>
	</form>	
</body>
</html>